# Maintainer: Sunguk Lee <d3m3vilurr@gmail.com>

pkgname=insync-headless
pkgver=3.0.0.10585
_dist=buster
pkgrel=1
pkgdesc="An unofficial Google Drive client that runs on Linux, with support for various desktops"
url="https://www.insynchq.com/downloads"
license=('custom:insync')
options=(!strip)
optdepends=()
arch=('x86_64')
source=("http://s.insynchq.com/builds/${pkgname}_${pkgver}-${_dist}_amd64.deb"
    'insync-headless@.service'
    'insync-headless.service')
sha256sums=('a9e19b6f639c21fcec6c9060a090bf12588d95afaa00da3f5d109060522f3c55'
            '8406882d9e206112fb80f278baadb765a10d40889516aa40860e5c9990148518'
            'eca7a9d837d5abef687bf64f314ace41fdf963a35e914f5e88bdb50f4c99d282')
package() {
   tar xvf data.tar.gz
   cp -rp usr ${pkgdir}/

   install -Dm644 ${srcdir}/insync-headless@.service ${pkgdir}/usr/lib/systemd/system/insync-headless@.service
   install -Dm644 ${srcdir}/insync-headless.service ${pkgdir}/usr/lib/systemd/system/insync-headless.service
}
